package com.cxzl.pcxt.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.cxzl.pcxt.entity.AnswerDetail;

/**
 * 答题明细Dao
 * @author DMJ
 *
 */
@Repository("pcxtAnswerDetail")
public interface AnswerDetailDao {

	/**
	 * 添加明细
	 * @param detail
	 */
	public void saveEntity(AnswerDetail detail);

	/**
	 * 根据用户ID和试卷ID删除明细
	 * @param userId
	 * @param paperId
	 */
	public void deleteByUserIdAndPaperId(@Param("userId") int userId,
			@Param("paperId") int paperId);
}
